#if !defined(AFX_CHANNELCONFDLG_H__5201AA02_358B_450F_975D_358560483401__INCLUDED_)
#define AFX_CHANNELCONFDLG_H__5201AA02_358B_450F_975D_358560483401__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChannelConfDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CChannelConfDlg dialog

class CChannelConfDlg : public CDialog
{
// Construction
public:
	CChannelConfDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CChannelConfDlg)
	enum { IDD = IDD_CHANNEL_CONF_DLG };
	CComboBox	m_cmbUseFun;
	CComboBox	m_cmbModID;
	CComboBox	m_cmbFunID;
	CComboBox	m_cmbFacID;
	CListCtrl	m_listChannel;
	int	m_chnID;
	CString	m_chnName;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChannelConfDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
private:
	_variant_t m_vchnID,m_vchnName,m_vModID,m_vFacID,m_vUseFun,m_vFunID;
	_RecordsetPtr m_pRecordset;
	
	BOOL m_bSuccess;
	int m_nCurrentSel;
	
	int CheckValid();
	void SetBtnState();
	void LoadData();
	void SaveData();
	void CheckPremise(char * result);
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CChannelConfDlg)
	afx_msg void OnEndlabeleditListChannel(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClose();
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnAdd();
	afx_msg void OnBtnDelete();
	afx_msg void OnBtnModify();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHANNELCONFDLG_H__5201AA02_358B_450F_975D_358560483401__INCLUDED_)
